import 'package:ls_work/viewmodel/food/single_food_menu_view_model.dart';

/// labelIds : null
/// goodsIds : null
/// serviceType : null
/// typeName : "热菜"
/// serviceTypeName : null
/// name : "荤菜"
/// typeId : 1
/// price : 12.00
/// unit : "单位"
/// specs : "规格"
/// taste : "口味"
/// isPackage : 0
/// imgAttachId : null
/// label : null
/// status : 0
/// isDel : 0
/// remark : null
/// branchId : null
/// tenantId : null
/// saasId : null
/// id : 39
/// createdBy : null
/// createdDate : null
/// updatedBy : null
/// updatedDate : null

class FoodMenuList extends SingleFoodMenuListData {
  FoodMenuList({
      this.labelIds, 
      this.goodsIds, 
      this.serviceType, 
      this.typeName, 
      this.serviceTypeName, 
      this.name, 
      this.typeId, 
      this.price, 
      this.unit, 
      this.specs, 
      this.taste, 
      this.isPackage, 
      this.imgAttachId, 
      this.label, 
      this.status, 
      this.isDel, 
      this.remark, 
      this.branchId, 
      this.tenantId, 
      this.saasId, 
      this.id, 
      this.createdBy, 
      this.createdDate, 
      this.updatedBy, 
      this.updatedDate,});

  FoodMenuList.fromJson(dynamic json) {
    labelIds = json['labelIds'];
    goodsIds = json['goodsIds'];
    serviceType = json['serviceType'];
    typeName = json['typeName'];
    serviceTypeName = json['serviceTypeName'];
    name = json['name'];
    typeId = json['typeId'];
    price = json['price'];
    unit = json['unit'];
    specs = json['specs'];
    taste = json['taste'];
    isPackage = json['isPackage'];
    imgAttachId = json['imgAttachId'];
    label = json['label'];
    status = json['status'];
    isDel = json['isDel'];
    remark = json['remark'];
    branchId = json['branchId'];
    tenantId = json['tenantId'];
    saasId = json['saasId'];
    id = json['id'];
    createdBy = json['createdBy'];
    createdDate = json['createdDate'];
    updatedBy = json['updatedBy'];
    updatedDate = json['updatedDate'];
  }
  dynamic labelIds;
  dynamic goodsIds;
  dynamic serviceType;
  String? typeName;
  dynamic serviceTypeName;
  String? name;
  int? typeId;
  double? price;
  String? unit;
  String? specs;
  String? taste;
  int? isPackage;
  dynamic imgAttachId;
  dynamic label;
  int? status;
  int? isDel;
  dynamic remark;
  dynamic branchId;
  dynamic tenantId;
  dynamic saasId;
  int? id;
  dynamic createdBy;
  dynamic createdDate;
  dynamic updatedBy;
  dynamic updatedDate;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['labelIds'] = labelIds;
    map['goodsIds'] = goodsIds;
    map['serviceType'] = serviceType;
    map['typeName'] = typeName;
    map['serviceTypeName'] = serviceTypeName;
    map['name'] = name;
    map['typeId'] = typeId;
    map['price'] = price;
    map['unit'] = unit;
    map['specs'] = specs;
    map['taste'] = taste;
    map['isPackage'] = isPackage;
    map['imgAttachId'] = imgAttachId;
    map['label'] = label;
    map['status'] = status;
    map['isDel'] = isDel;
    map['remark'] = remark;
    map['branchId'] = branchId;
    map['tenantId'] = tenantId;
    map['saasId'] = saasId;
    map['id'] = id;
    map['createdBy'] = createdBy;
    map['createdDate'] = createdDate;
    map['updatedBy'] = updatedBy;
    map['updatedDate'] = updatedDate;
    return map;
  }

  @override
  String get foodShowName => name??"";

  @override
  num get showFoodPrice => price??0;

}